﻿using Hangfire;
using Microsoft.AspNetCore.Mvc;
using System;
using Volo.Abp.AspNetCore.Mvc;

namespace Ecommerce.Controllers
{
    public class HomeController : AbpController
    {
        public ActionResult Index()
        {
            RecurringJob.AddOrUpdate(() => Console.WriteLine($"---------------------------------------执行一次输出 当前时间:{DateTime.Now}"), Cron.Minutely());
            return Redirect("~/swagger");
        }
    }
}
